<?xml version="1.0" encoding="utf-8"?>

<!--
SPDX-FileCopyrightText: Adam Evyčędo

SPDX-License-Identifier: GPL-3.0-or-later
-->

<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
	xmlns:app="http://schemas.android.com/apk/res-auto"
	xmlns:tool="http://schemas.android.com/tools"
	android:layout_width="match_parent"
	android:layout_height="wrap_content"
	android:paddingBottom="16dp">

	<com.google.android.material.bottomsheet.BottomSheetDragHandleView
		android:id="@+id/drag_handle"
		android:layout_width="match_parent"
		android:layout_height="wrap_content"
		app:layout_constraintTop_toTopOf="parent" />

	<com.google.android.material.textview.MaterialTextView
		android:id="@+id/time"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_marginTop="48dp"
		android:textAppearance="@style/TextAppearance.Material3.DisplaySmall"
		app:layout_constraintEnd_toEndOf="parent"
		app:layout_constraintStart_toStartOf="parent"
		app:layout_constraintTop_toTopOf="parent"
		tool:text="at 12:10:30" />

	<com.google.android.material.textview.MaterialTextView
		android:id="@+id/offset"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_marginStart="4dp"
		android:textAppearance="@style/TextAppearance.Material3.BodyLarge"
		android:visibility="gone"
		app:layout_constraintBaseline_toBaselineOf="@+id/time"
		app:layout_constraintStart_toEndOf="@+id/time"
		tool:text="(+2 min)" />

	<ImageView
		android:id="@+id/rt_icon"
		android:layout_width="24dp"
		android:layout_height="24dp"
		android:layout_marginStart="16dp"
		android:contentDescription="@string/realtime_content_description"
		app:layout_constraintBottom_toBottomOf="@+id/time"
		app:layout_constraintStart_toStartOf="parent"
		app:layout_constraintTop_toTopOf="@+id/time"
		app:srcCompat="@drawable/radar" />

	<ImageView
		android:id="@+id/wheelchair_icon"
		android:layout_width="24dp"
		android:layout_height="24dp"
		android:layout_marginStart="8dp"
		android:contentDescription="@string/wheelchair_content_description"
		app:layout_constraintStart_toEndOf="@id/rt_icon"
		app:layout_constraintTop_toTopOf="@+id/rt_icon"
		app:srcCompat="@drawable/wheelchair" />

	<com.google.android.material.textview.MaterialTextView
		android:id="@+id/line"
		android:layout_width="0dp"
		android:layout_height="wrap_content"
		android:layout_marginStart="8dp"
		android:layout_marginTop="8dp"
		android:layout_marginEnd="8dp"
		android:textAlignment="center"
		android:textAppearance="@style/TextAppearance.Material3.HeadlineSmall"
		app:layout_constraintEnd_toEndOf="parent"
		app:layout_constraintStart_toStartOf="parent"
		app:layout_constraintTop_toBottomOf="@id/time" />

	<ImageView
		android:id="@+id/boarding_icon"
		android:layout_width="16dp"
		android:layout_height="16dp"
		android:layout_marginEnd="8dp"
		android:importantForAccessibility="no"
		app:layout_constraintBottom_toBottomOf="@+id/boarding_text"
		app:layout_constraintEnd_toStartOf="@+id/boarding_text"
		app:layout_constraintTop_toTopOf="@+id/boarding_text"
		app:srcCompat="@drawable/transfer" />

	<com.google.android.material.textview.MaterialTextView
		android:id="@+id/boarding_text"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_marginStart="8dp"
		android:layout_marginTop="180dp"
		android:layout_marginEnd="8dp"
		android:textAppearance="@style/TextAppearance.Material3.BodyLarge"
		app:layout_constraintEnd_toEndOf="@id/middle"
		app:layout_constraintTop_toTopOf="parent"
		tool:text="on demand" />

	<ImageView
		android:id="@+id/speed_icon"
		android:layout_width="16dp"
		android:layout_height="16dp"
		android:layout_marginEnd="8dp"
		android:importantForAccessibility="no"
		app:layout_constraintBottom_toBottomOf="@+id/speed_text"
		app:layout_constraintEnd_toStartOf="@+id/speed_text"
		app:layout_constraintTop_toTopOf="@+id/speed_text"
		app:srcCompat="@drawable/speed" />

	<com.google.android.material.textview.MaterialTextView
		android:id="@+id/speed_text"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_marginTop="8dp"
		android:layout_marginEnd="8dp"
		android:textAppearance="@style/TextAppearance.Material3.BodyLarge"
		app:layout_constraintEnd_toStartOf="@+id/middle"
		app:layout_constraintTop_toBottomOf="@id/boarding_text"
		tool:text="10 Vl" />

	<ImageView
		android:id="@+id/congestion_icon"
		android:layout_width="16dp"
		android:layout_height="16dp"
		android:layout_marginStart="8dp"
		android:layout_marginEnd="8dp"
		android:importantForAccessibility="no"
		app:layout_constraintBottom_toBottomOf="@+id/congestion_text"
		app:layout_constraintStart_toStartOf="@+id/middle"
		app:layout_constraintTop_toTopOf="@+id/congestion_text"
		app:srcCompat="@drawable/traffic" />

	<com.google.android.material.textview.MaterialTextView
		android:id="@+id/congestion_text"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_marginStart="8dp"
		android:layout_marginTop="180dp"
		android:layout_marginEnd="8dp"
		android:textAppearance="@style/TextAppearance.Material3.BodyLarge"
		app:layout_constraintStart_toEndOf="@id/congestion_icon"
		app:layout_constraintTop_toTopOf="parent"
		tool:text="smooth traffic" />

	<ImageView
		android:id="@+id/occupancy_icon"
		android:layout_width="16dp"
		android:layout_height="16dp"
		android:layout_marginStart="8dp"
		android:layout_marginEnd="8dp"
		android:importantForAccessibility="no"
		app:layout_constraintBottom_toBottomOf="@+id/occupancy_text"
		app:layout_constraintStart_toStartOf="@+id/middle"
		app:layout_constraintTop_toTopOf="@+id/occupancy_text"
		app:srcCompat="@drawable/crowd" />

	<com.google.android.material.textview.MaterialTextView
		android:id="@+id/occupancy_text"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_marginStart="8dp"
		android:layout_marginTop="8dp"
		android:layout_marginEnd="8dp"
		android:textAppearance="@style/TextAppearance.Material3.BodyLarge"
		app:layout_constraintStart_toEndOf="@id/occupancy_icon"
		app:layout_constraintTop_toBottomOf="@id/congestion_text"
		tool:text="empty vehicle" />

	<androidx.constraintlayout.widget.Guideline
		android:id="@+id/middle"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:orientation="vertical"
		app:layout_constraintGuide_percent=".5" />

	<androidx.constraintlayout.helper.widget.Flow
		android:id="@+id/capabilities"
		android:layout_width="0dp"
		android:layout_height="wrap_content"
		android:layout_marginStart="8dp"
		android:layout_marginTop="16dp"
		android:layout_marginEnd="8dp"
		app:constraint_referenced_ids="ac,bike,voice,ticket,usb"
		app:flow_horizontalGap="4dp"
		app:flow_horizontalStyle="packed"
		app:flow_verticalGap="4dp"
		app:flow_wrapMode="chain"
		app:layout_constraintEnd_toEndOf="parent"
		app:layout_constraintStart_toStartOf="parent"
		app:layout_constraintTop_toBottomOf="@+id/occupancy_text" />

	<ImageView
		android:id="@+id/ac"
		android:layout_width="24dp"
		android:layout_height="24dp"
		android:contentDescription="@string/air_condition_content_description"
		app:srcCompat="@drawable/ac"
		tool:ignore="MissingConstraints" />

	<ImageView
		android:id="@+id/bike"
		android:layout_width="24dp"
		android:layout_height="24dp"
		android:contentDescription="@string/bicycles_allowed_content_description"
		app:srcCompat="@drawable/bike"
		tool:ignore="MissingConstraints" />

	<ImageView
		android:id="@+id/voice"
		android:layout_width="24dp"
		android:layout_height="24dp"
		android:contentDescription="@string/voice_announcements_content_description"
		app:srcCompat="@drawable/voice"
		tool:ignore="MissingConstraints" />

	<ImageView
		android:id="@+id/ticket"
		android:layout_width="24dp"
		android:layout_height="24dp"
		android:contentDescription="@string/tickets_sold_content_description"
		app:srcCompat="@drawable/ticket"
		tool:ignore="MissingConstraints" />

	<ImageView
		android:id="@+id/usb"
		android:layout_width="24dp"
		android:layout_height="24dp"
		android:contentDescription="@string/usb_charging_content_description"
		app:srcCompat="@drawable/usb"
		tool:ignore="MissingConstraints" />

	<org.osmdroid.views.MapView
		android:id="@+id/map"
		android:layout_width="match_parent"
		android:layout_height="250dp"
		android:layout_margin="16dp"
		app:layout_constraintEnd_toEndOf="parent"
		app:layout_constraintStart_toStartOf="parent"
		app:layout_constraintTop_toBottomOf="@+id/capabilities" />
</androidx.constraintlayout.widget.ConstraintLayout>
